import { createSlice } from '@reduxjs/toolkit';

export const SideSlice = createSlice({
  name: 'side',
  initialState: {
    collapsed: false,
  },
  reducers: {
    toggleCollapsed: (state) => {
      state.collapsed = !state.collapsed;
    }
  }
});

export const { toggleCollapsed } = SideSlice.actions;
export default SideSlice.reducer;